package org.apache.jsp.weixin.main.member;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class address_005fadd_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

static private org.apache.jasper.runtime.ProtectedFunctionMapper _jspx_fnmap_0;
static private org.apache.jasper.runtime.ProtectedFunctionMapper _jspx_fnmap_1;

static {
  _jspx_fnmap_0= org.apache.jasper.runtime.ProtectedFunctionMapper.getMapForFunction("fn:length", org.apache.taglibs.standard.functions.Functions.class, "length", new Class[] {java.lang.Object.class});
  _jspx_fnmap_1= org.apache.jasper.runtime.ProtectedFunctionMapper.getMapForFunction("fn:trim", org.apache.taglibs.standard.functions.Functions.class, "trim", new Class[] {java.lang.String.class});
}

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList(5);
    _jspx_dependants.add("/taglib.jsp");
    _jspx_dependants.add("/WEB-INF/tld/fmt.tld");
    _jspx_dependants.add("/WEB-INF/tld/fn.tld");
    _jspx_dependants.add("/WEB-INF/tld/c.tld");
    _jspx_dependants.add("/WEB-INF/tld/xw.tld");
  }

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fif_0026_005ftest;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.release();
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	response.setHeader("progma", "no-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);

      out.write("\r\n");
      out.write("<!DOCTYPE html>\r\n");
      out.write("<head>\r\n");
      out.write("    ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/weixin/include/head_v2.jsp", out, false);
      out.write("\r\n");
      out.write("\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body class=\"bg-f6f6f6\" role=\"_fixedTop\">\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/weixin/include/navihead_v2.jsp" + (("/weixin/include/navihead_v2.jsp").indexOf('?')>0? '&': '?') + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("title", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("地址编辑", request.getCharacterEncoding()) + "&" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("backUrl", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${fn:length(param.ref) > 0?param.ref:'address?addresstype='}", java.lang.String.class, (PageContext)_jspx_page_context, _jspx_fnmap_0, false) + (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${fn:length(param.ref) > 0?'':param.addresstype}", java.lang.String.class, (PageContext)_jspx_page_context, _jspx_fnmap_0, false), request.getCharacterEncoding()), out, false);
      out.write("\r\n");
      out.write("<form role=\"_editForm\" action=\"ajax_address_add\" data-validate=\"true\"\r\n");
      out.write("      redirect-url=\"address?addresstype=");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.addresstype}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\" data-success=\"callback(data)\">\r\n");
      out.write("    <input type=\"hidden\" name=\"addresstype\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.addresstype }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\"/>\r\n");
      out.write("    ");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("    <input type=\"hidden\" name=\"status\" value=\"2\"/>\r\n");
      out.write("\r\n");
      out.write("    <div class=\"pt43 comContent\">\r\n");
      out.write("        <div class=\"bg-fff color-9d9d9d\">\r\n");
      out.write("            <ul>\r\n");
      out.write("                <li class=\"pt5 pb5 pr12 pl12 bb\">\r\n");
      out.write("                    <label for=\"cname\" class=\"w20 color-9d9d9d\">姓名</label>\r\n");
      out.write("                    <input type=\"text\" name=\"cname\" id=\"cname\" class=\"w70 pt5 pb5 b-none \"\r\n");
      out.write("                           value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${fn:length(item.cname)>0?item.cname:sessionScope._member.cname}", java.lang.String.class, (PageContext)_jspx_page_context, _jspx_fnmap_0, false));
      out.write("\" data-title=\"姓名\" data-format=\"_required _nameTxt\">\r\n");
      out.write("                </li>\r\n");
      out.write("                <li class=\"pt5 pb5 pr12 pl12 bb\">\r\n");
      out.write("                    <label for=\"phone\" class=\"w20 color-9d9d9d\">电话</label>\r\n");
      out.write("                    <input type=\"text\" name=\"phone\" id=\"phone\" class=\"w70 pt5 pb5 b-none\"\r\n");
      out.write("                           value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${fn:length(item.phone)>0?item.phone:sessionScope._member.account}", java.lang.String.class, (PageContext)_jspx_page_context, _jspx_fnmap_0, false));
      out.write("\" data-title=\"电话\" data-format=\"_required _contactNumber\">\r\n");
      out.write("                </li>\r\n");
      out.write("                ");
      if (_jspx_meth_c_005fif_005f1(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("                <li class=\"pt5 pb5 pr12 pl12 bb pr clearfix\" role=\"_selAddress\" data-param=\"type=city,region\"\r\n");
      out.write("                    data-next=\"#next\" data-name=\"citycode,regioncode,citycode_text,regioncode_text\">\r\n");
      out.write("                    <input type=\"hidden\" name=\"citycode\" id=\"citycode\" class=\"\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.citycode}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\">\r\n");
      out.write("                    <input type=\"hidden\" name=\"regioncode\" id=\"regioncode\" class=\"\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.region.code}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\"\r\n");
      out.write("                           data-title=\"城市片区\" data-format=\"_required\">\r\n");
      out.write("                    <span class=\"pt5 pb5 f_left w20 color-9d9d9d\">城市片区</span>\r\n");
      out.write("                    <p class=\"w70 clearfix f_left ml5\">\r\n");
      out.write("                        <span class=\"pt5 pb5 f_left color-4d4d4d\" id=\"citycode_text\">");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.cityName}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("</span>\r\n");
      out.write("                        <span class=\"pt5 pb5 f_left color-4d4d4d\" id=\"regioncode_text\">");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.regionName}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("</span>\r\n");
      out.write("                    </p>\r\n");
      out.write("                    <span class=\"profile-arrow color-aeaeae f_right pr12\"><i\r\n");
      out.write("                            class=\"icon-angle-right f24\"></i></span>\r\n");
      out.write("                </li>\r\n");
      out.write("                ");
      if (_jspx_meth_c_005fif_005f2(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("                <li class=\"pt5 pb5 pr12 pl12 bb\">\r\n");
      out.write("                    <label for=\"cname\" class=\"w20 color-9d9d9d\">具体地址</label>\r\n");
      out.write("                    <input type=\"text\" class=\"w70 b-none color-4d4d4d  pt5 pb5\" id=\"address\" name=\"address\"\r\n");
      out.write("                           value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${fn:trim(item.address)}", java.lang.String.class, (PageContext)_jspx_page_context, _jspx_fnmap_1, false));
      out.write("\" data-title=\"具体地址\" data-format=\"_required _maxStr\" data-maxStr=\"50\"/>\r\n");
      out.write("                </li>\r\n");
      out.write("                ");
      if (_jspx_meth_c_005fif_005f3(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("            </ul>\r\n");
      out.write("        </div>\r\n");
      out.write("\r\n");
      out.write("        ");
      if (_jspx_meth_c_005fif_005f4(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("        <p class=\"pr12 pl12 pt10 pb10 tc\">\r\n");
      out.write("            <a href=\"javascript:void(0)\" role=\"_submit\" data-handler=\"on\"\r\n");
      out.write("               class=\"pt10 pb10 f16 fb btn-bg br8 w100 iblock color-fff\">保存</a>\r\n");
      out.write("        </p>\r\n");
      out.write("    </div>\r\n");
      out.write("</form>\r\n");
      out.write("<select class=\"none\" name=\"\" id=\"citydata\" role=\"_linkSelect _defaultData\" data-target=\"regiondata\"\r\n");
      out.write("        data-initurl=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${path }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/data/json/opencity\" data-url=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${path }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/data/json/openregion\"\r\n");
      out.write("        data-defaultValue=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${(null == citycode)?'00200001':citycode}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\">\r\n");
      out.write("    <option value=\"\">城市</option>\r\n");
      out.write("</select>\r\n");
      out.write("<select class=\"none\" name=\"\" id=\"regiondata\">\r\n");
      out.write("    <option value=\"\">片区</option>\r\n");
      out.write("</select>\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/weixin/include/footer_v2.jsp", out, false);
      out.write("\r\n");
      out.write("<script src=\"http://res.wx.qq.com/open/js/jweixin-1.0.0.js\"></script>\r\n");
      if (_jspx_meth_c_005fif_005f5(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
      out.write("<script>\r\n");
      out.write("    function callback(data){\r\n");
      out.write("        if(data.ret.msg==4){\r\n");
      out.write("            window.Util.messager.show(\"恭喜您,获得");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${m_package.title}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write(",已放入您的账户\");\r\n");
      out.write("            setTimeout(function () {\r\n");
      out.write("                window.location.href = \"coupon\";\r\n");
      out.write("            },3000);\r\n");
      out.write("        }else{\r\n");
      out.write("            window.location.href = \"address?addresstype=\"+data.ret.addresstype;\r\n");
      out.write("        }\r\n");
      out.write("    }\r\n");
      out.write("</script>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_c_005fif_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f0.setParent(null);
    // /weixin/main/member/address_add.jsp(17,4) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${null != item}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag();
    if (_jspx_eval_c_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("        <input type=\"hidden\" name=\"id\" value=\"");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.id}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\"/>\r\n");
        out.write("        <input type=\"hidden\" name=\"isdefault\" value=\"");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.isdefault}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\"/>\r\n");
        out.write("    ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f1(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f1.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f1.setParent(null);
    // /weixin/main/member/address_add.jsp(36,16) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.addresstype==2}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f1 = _jspx_th_c_005fif_005f1.doStartTag();
    if (_jspx_eval_c_005fif_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("                    <li class=\"pt5 pb5 pr12 pl12 bb\">\r\n");
        out.write("                        <label for=\"companyname\" class=\"w20 color-9d9d9d\">公司名字</label>\r\n");
        out.write("                        <input type=\"text\" name=\"companyname\" id=\"companyname\" class=\"w70 pt5 pb5 b-none\"\r\n");
        out.write("                               value=\"");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.companyname}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\" data-title=\"公司名字\" data-format=\"_required _nameTxt\">\r\n");
        out.write("                    </li>\r\n");
        out.write("                ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f1.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f2(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f2 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f2.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f2.setParent(null);
    // /weixin/main/member/address_add.jsp(56,16) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f2.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.addresstype==1}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f2 = _jspx_th_c_005fif_005f2.doStartTag();
    if (_jspx_eval_c_005fif_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("                    <li class=\"pt5 pb5 pr12 pl12 bb pr clearfix\" role=\"_selAddress\" id=\"next\"\r\n");
        out.write("                        data-param=\"type=community\"\r\n");
        out.write("                        data-pid=\"#regioncode\" data-name=\"communityid,community_text\">\r\n");
        out.write("                        <input type=\"hidden\" name=\"communityid\" id=\"communityid\" data-clear=\"true\"\r\n");
        out.write("                               value=\"");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.base_community.id}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\" data-title=\"小区\" data-format=\"_defaultInt\">\r\n");
        out.write("                        <span class=\"pt5 pb5 f_left w20 \">小区</span>\r\n");
        out.write("                        <span class=\"pt5 pb5 f_left color-4d4d4d ml5\"\r\n");
        out.write("                              id=\"community_text\" data-clear=\"true\">");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.base_community.cname}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("</span>\r\n");
        out.write("                        <span class=\"profile-arrow color-aeaeae f_right pr12\"><i\r\n");
        out.write("                                class=\"icon-angle-right f24\"></i></span>\r\n");
        out.write("                    </li>\r\n");
        out.write("                ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f2.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f3(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f3 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f3.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f3.setParent(null);
    // /weixin/main/member/address_add.jsp(74,16) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f3.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.addresstype==1}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f3 = _jspx_th_c_005fif_005f3.doStartTag();
    if (_jspx_eval_c_005fif_005f3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("                    <li class=\"pt5 pb5 pr12 pl12 bb\">\r\n");
        out.write("                        <label for=\"square\" class=\"w20 color-9d9d9d\">房屋面积</label>\r\n");
        out.write("                        <input type=\"text\" class=\"w70 b-none color-4d4d4d  pt5 pb5\" id=\"square\" name=\"square\"\r\n");
        out.write("                               value=\"");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.square}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\" data-title=\"房屋面积\" data-format=\"_number _required _min\" data-min=\"50\"/>\r\n");
        out.write("                    </li>\r\n");
        out.write("                ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f3.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f4(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f4 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f4.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f4.setParent(null);
    // /weixin/main/member/address_add.jsp(84,8) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f4.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.addresstype==1}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f4 = _jspx_th_c_005fif_005f4.doStartTag();
    if (_jspx_eval_c_005fif_005f4 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("            <p class=\"pt10 pb10 pr12 pl12 f14 color-4d4d4d\">非必填信息</p>\r\n");
        out.write("\r\n");
        out.write("            <div class=\"bg-fff color-9d9d9d\">\r\n");
        out.write("                <ul class=\"js-input\">\r\n");
        out.write("                    <li class=\"pt5 pb5 pr12 pl12 bb bt\">\r\n");
        out.write("                        <label for=\"rooms\" class=\"w20 color-9d9d9d\">房间数</label>\r\n");
        out.write("                        <input type=\"text\" id=\"rooms\" name=\"rooms\" class=\"pt5 pb5 w70 b-none color-4d4d4d\"\r\n");
        out.write("                               data-title=\"房间数\"\r\n");
        out.write("                               data-format=\"_defaultInt\" ");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.addresstype==2?'disabled=\"disabled\"':''}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\r\n");
        out.write("                               value=\"");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.rooms}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\"/>\r\n");
        out.write("                    </li>\r\n");
        out.write("                    <li class=\"pt5 pb5 pr12 pl12 bb\">\r\n");
        out.write("                        <label for=\"kitchens\" class=\"w20 color-9d9d9d\">大厅数</label>\r\n");
        out.write("                        <input type=\"text\" id=\"halls\" name=\"halls\" class=\"pt5 pb5 w70 b-none color-4d4d4d\"\r\n");
        out.write("                               data-format=\"_defaultInt\"\r\n");
        out.write("                               data-title=\"大厅数\" ");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.addresstype==2?'disabled=\"disabled\"':''}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\r\n");
        out.write("                               value=\"");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.halls}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\">\r\n");
        out.write("                    </li>\r\n");
        out.write("                    <li class=\"pt5 pb5 pr12 pl12 bb\">\r\n");
        out.write("                        <label for=\"halls\" class=\"w20 color-9d9d9d\">厨房数</label>\r\n");
        out.write("                        <input type=\"text\" id=\"kitchens\" name=\"kitchens\" class=\"pt5 pb5 w70 b-none color-4d4d4d\"\r\n");
        out.write("                               data-format=\"_defaultInt\"\r\n");
        out.write("                               data-title=\"厨房数\" ");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.addresstype==2?'disabled=\"disabled\"':''}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\r\n");
        out.write("                               value=\"");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.kitchens}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\">\r\n");
        out.write("                    </li>\r\n");
        out.write("                    <li class=\"pt5 pb5 pr12 pl12 bb\">\r\n");
        out.write("                        <label for=\"toilets\" class=\"w20 color-9d9d9d\">卫生间数</label>\r\n");
        out.write("                        <input type=\"text\" name=\"toilets\" id=\"toilets\" class=\"pt5 pb5 w70 b-none color-4d4d4d\"\r\n");
        out.write("                               data-format=\"_defaultInt\" ");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.addresstype==2?'disabled=\"disabled\"':''}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\r\n");
        out.write("                               data-title=\"卫生间数\" value=\"");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.toilets}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\">\r\n");
        out.write("                    </li>\r\n");
        out.write("                </ul>\r\n");
        out.write("            </div>\r\n");
        out.write("        ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f4.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f4);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f4);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f5(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f5 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f5.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f5.setParent(null);
    // /weixin/main/member/address_add.jsp(135,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f5.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.addresstype==1 && null == item}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f5 = _jspx_th_c_005fif_005f5.doStartTag();
    if (_jspx_eval_c_005fif_005f5 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("    <script>\r\n");
        out.write("        var link = window.location.href;\r\n");
        out.write("        var link = link.substring(0, link.lastIndexOf('/weixin/') + 1);\r\n");
        out.write("\r\n");
        out.write("        wx.config({\r\n");
        out.write("            debug: false,\r\n");
        out.write("            appId: '");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${appId}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("',\r\n");
        out.write("            timestamp: ");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${null == config['timestamp']?0:config['timestamp']}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write(",\r\n");
        out.write("            nonceStr: '");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${config['noncestr']}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("',\r\n");
        out.write("            signature: '");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${config['signature']}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("',\r\n");
        out.write("            jsApiList: [\r\n");
        out.write("                'checkJsApi',\r\n");
        out.write("                'getLocation'\r\n");
        out.write("            ]\r\n");
        out.write("        });\r\n");
        out.write("\r\n");
        out.write("        wx.ready(function () {\r\n");
        out.write("            wx.getLocation({\r\n");
        out.write("                type: 'wgs84', // 默认为wgs84的gps坐标，如果要返回直接给openLocation用的火星坐标，可传入'gcj02'\r\n");
        out.write("                success: function (res) {\r\n");
        out.write("                    var latitude = res.latitude; // 纬度，浮点数，范围为90 ~ -90\r\n");
        out.write("                    var longitude = res.longitude; // 经度，浮点数，范围为180 ~ -180。\r\n");
        out.write("                    window.Util.ajax.get(link + \"data/map/geocoding\", {lat: latitude, lng: longitude}, function (data) {\r\n");
        out.write("                        if (0 == data.status) {\r\n");
        out.write("                            var province = data.result.addressComponent.province;\r\n");
        out.write("                            var city = data.result.addressComponent.city;\r\n");
        out.write("                            var district = data.result.addressComponent.district;\r\n");
        out.write("//                            var address = data.result.formatted_address;\r\n");
        out.write("//\r\n");
        out.write("//                            address = address.replace(province, \"\");\r\n");
        out.write("//                            address = address.replace(city, \"\");\r\n");
        out.write("//                            if ($(\"input[name=address]\").val() == \"\") {\r\n");
        out.write("//                                $(\"input[name=address]\").val(address);\r\n");
        out.write("//                            }\r\n");
        out.write("                            //城市列表\r\n");
        out.write("                            $('#citydata option').each(function () {\r\n");
        out.write("                                if ($(this).text() == city) {\r\n");
        out.write("                                    $(this).prop(\"selected\", true);\r\n");
        out.write("                                    //设置值\r\n");
        out.write("                                    $('#citycode').val($(this).val());\r\n");
        out.write("                                    $('#citycode_text').text($(this).text());\r\n");
        out.write("                                }\r\n");
        out.write("                            });\r\n");
        out.write("                            $('#citydata').change();\r\n");
        out.write("\r\n");
        out.write("                            $(\"#regiondata option\").each(function () {\r\n");
        out.write("                                if ($(this).text() == district) {\r\n");
        out.write("                                    $(this).prop(\"selected\", true);\r\n");
        out.write("                                    //设置值\r\n");
        out.write("                                    $('#regioncode').val($(this).val());\r\n");
        out.write("                                    $('#regioncode_text').text($(this).text());\r\n");
        out.write("                                }\r\n");
        out.write("                            });\r\n");
        out.write("                            $(\"#regioncode\").change();\r\n");
        out.write("                        }\r\n");
        out.write("                    }, 'mask');\r\n");
        out.write("\r\n");
        out.write("                }\r\n");
        out.write("            });\r\n");
        out.write("        });\r\n");
        out.write("\r\n");
        out.write("\r\n");
        out.write("        $(function(){\r\n");
        out.write("            $('.js-input input').focus(function(){\r\n");
        out.write("                if($(this).val() == 0){\r\n");
        out.write("                    $(this).val(\"\");\r\n");
        out.write("                }\r\n");
        out.write("            })\r\n");
        out.write("        })\r\n");
        out.write("    </script>\r\n");
        int evalDoAfterBody = _jspx_th_c_005fif_005f5.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f5);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f5);
    return false;
  }
}
